<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>上传文件</title>
</head>
<body>
	<form action="http://localhost:8080/multiple/upload"
		method="post" enctype="multipart/form-data"
		onsubmit="return check()">
		上传人：<input id="name" type="text" name="name" /><br />
		请选择文件：<input id="file" type="file" name="uploadfile" multiple="multiple" /><br />
		<input type="submit" value="上传" />
	</form>
	<span id="message">${msg}</span>
	<a href="http://localhost:8080/multiple/customer">返回客户管理页面</a>
	<script type="text/javascript">
	// 判断是否填写上传人并已选择上传文件
	function check(){
	    var name = document.getElementById("name").value;
	    var file = document.getElementById("file").value;
	    if(name==""){
	        alert("填写上传人");
	        return false;
	    }
	    if(file.length==0||file==""){
	        alert("请选择上传文件");
	        return false;
	    }
	    return true;
	}
	</script>
</body>
</html>